import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询巡查记录列表/monitors/MAIN/recordList
export function recordList(data,query) {
  return request({
    url: '/monitors/MAIN/recordList',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}

// 查询巡查详情/monitors/MAIN/info
export function recordListInfo(id) {
  return request({
    url: '/monitors/MAIN/info?id=' + id,
    method: 'get',
  })
}

//新增巡查问题 /monitors/MAIN/add
export function MAINAdd(data) {
  return request({
    url: '/monitors/MAIN/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

//新增巡查问题反馈 /monitors/MAIN/returnHandle
export function MAINreturnHandle(data) {
  return request({
    url: '/monitors/MAIN/returnHandle',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 查询巡查记录列表/monitors/MAIN/returnList
export function returnList(data,query) {
  return request({
    url: '/monitors/MAIN/returnList',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
